package org.dllwh.milvus.config;

import cn.hutool.core.convert.Convert;
import cn.hutool.setting.dialect.Props;

/**
 * 把今天最好的表现当作明天最新的起点．．～
 * <p>
 * Today the best performance as tomorrow the newest starter!
 *
 * @ClassName MilvusConfig
 * @Description Milvus 连接配置
 * @Date 2025-05-23 14:36
 * @版本 V 1.0.1
 * @since JDK 17
 */
public class MilvusConfig {
    private static final Props props;
    static {
        props = new Props("milvus.properties");
    }
    public final static String host = props.getStr("milvus.host","localhost");
    public final static int port = Convert.toInt(props.getStr("milvus.port"),19530);
    public final static String databaseName = props.getStr("milvus.databaseName");;
    public final static String collectionName = props.getStr("milvus.collectionName");;
    public final static String userName = props.getStr("milvus.userName");;
    public final static String password = props.getStr("milvus.password");;
}
